package cn.wolfcode.shop.cloud.web.feign;

import cn.wolfcode.shop.cloud.Result;
import cn.wolfcode.shop.cloud.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MemFeignClient implements  MemFeignApi{

    @Autowired
    private IUserService userService;

    @Override
    public Result<Boolean> refreshTime(String token) {
        return Result.success(userService.refreshTime(token));
    }
}
